home *** CD-ROM | disk | FTP | other *** search
- Path: babel.ho.att.com!joe
- From: joe@sanskrit.ho.att.com (Joe Orost)
- Newsgroups: comp.lang.c++
- Subject: [HELP!] What's wrong with this code (anachronism)?
- Date: 15 Apr 96 23:36:22 GMT
- Organization: AT&T Bell Laboratories, Columbus, Ohio
- Message-ID: <joe.829611382@babel.ho.att.com>
- NNTP-Posting-Host: sanskrit.ho.att.com
-
- "StmtDG.h", line 9: Warning (Anachronism): StmtDG::SDG_Node is not
- accessible from StmtDG::SDG_Edge.
- "StmtDG.h", line 9: Note: Type "CC -migration" for more on anachronisms.
- "StmtDG.h", line 14: Warning (Anachronism): StmtDG::SDG_Edge is not
- accessible from StmtDG::SDG_Node.
- "StmtDG.h", line 32: Warning (Anachronism): StmtDG::SDG_Node is not
- accessible from StmtDG_Tsort::SDG_TNode.
-
- 1 #include "D.h"
- 2
- 3 class StmtDG {
- 4 protected:
- 5 class SDG_Node;
- 6 class SDG_Edge {
- 7 public:
- 8 SDG_Edge *next;
- 9 StmtDG::SDG_Node *edge;
- 10 };
- 11 class SDG_Node {
- 12 public:
- 13 SDG_Node *next;
- 14 StmtDG::SDG_Edge *edges;
- 15 AST_INDEX node;
- 16 int indegree;
- 17 };
- 18 SDG_Node *first;
- 19 int nodes;
- 20 public:
- 21 friend class StmtDG_Tsort;
- 22 StmtDG();
- 23 ~StmtDG();
- 24 void add(AST_INDEX node);
- 25 void add_edge(AST_INDEX source, AST_INDEX sink);
- 26 };
- 27
- 28 class StmtDG_Tsort {
- 29 class SDG_TNode {
- 30 public:
- 31 SDG_TNode *next;
- 32 StmtDG::SDG_Node *node;
- 33 };
- 34 SDG_TNode *head, *cur;
- 35 public:
- 36 StmtDG_Tsort(StmtDG SDG);
- 37 ~StmtDG_Tsort();
- 38 AST_INDEX cur_stmt();
- 39 void operator ++();
- 40 };
-
- Please send email.
-
- regards,
- joe
-
- --
- Full Name: Joseph M. Orost
- EMail: Joseph.Orost@att.com, attmail!orost
- Organization: AT&T Labs: Technology Realization
- SurfaceMail: 943 Holmdel Rd.; Cruz Plaza; Holmdel, NJ 07733
- Phone: +1 (908) 946-1115
- Fax: +1 (908) 946-9146
-